//
//  MessageCell.m
//  敢唆嘛!
//
//  Created by 教主 on 15/11/28.
//  Copyright © 2015年 zms. All rights reserved.
//

#import "MessageCell.h"
#import "Device.h"

@interface MessageCell ()

@end

@implementation MessageCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        //设置用户界面的宽
        float width = KSWidth/4*3;
        
        self.messageView = [[imageviewAndLabel alloc]initWithFrame:CGRectMake(0, 0, width, KSWidth/8)];
        
        //赋值数据
        self.messageView.label.text = @"消息中心";
        
        //赋值图片
        self.messageView.imageView.image = [UIImage imageNamed:@"information.png"];
        
        [self.contentView addSubview:_messageView];
        
        self.messageRed = [[UIView alloc] initWithFrame:CGRectMake(self.messageView.frame.size.width / 1.75, self.messageView.frame.size.height / 2.5, KSWidth / 35, KSWidth / 35)];
        self.messageRed.hidden = YES;
        self.messageRed.layer.cornerRadius = KSWidth / 70;
        self.messageRed.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_messageRed];

        
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
